package com.zh.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zh.blog.dto.UniqueViewDto;
import com.zh.blog.model.UniqueView;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 访问量
 * @author ZhengHao
 * Created At 2022/7/31.
 **/
@Repository
public interface UniqueViewDao extends BaseMapper<UniqueView> {

    List<UniqueViewDto> listUniqueViews(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}